<?php
require_once "includes/config.php";
session_start();	
	$date=date("Y-m-d");
	$sessid=session_id();
        
	$val=$_REQUEST['val'];
	$id=$_REQUEST['id'];
        
        //echo  $id;
	mysql_query("update tempcart set is_online='".$val."',verify_code='".rand(1000000000,9999999999)."' where tempid='".$id."' ");
	echo "success";
        ?>
	